<template>
  <div>
    <div class="products">
      <div class="banner">
        <a href="javascript:;">
          <img
            src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/431e5fd6bfd1b67d096928248be18303.jpg?thumb=1&w=1839&h=180&f=webp&q=90"
            alt=""
          />
        </a>
      </div>
      <div class="container">
        <div class="product-header">
          <h2>手机</h2>
        </div>
        <div class="product-content">
          <div class="product-left">
            <img
              src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cb1bd61ad71c45a4f67f09b075463944.jpeg?thumb=1&w=351&h=921&f=webp&q=90"
              alt=""
            />
          </div>
          <div class="product-right">
            <div class="item">
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
            </div>
            <div class="item">
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="products">
      <div class="banner">
        <a href="javascript:;">
          <img
            src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/431e5fd6bfd1b67d096928248be18303.jpg?thumb=1&w=1839&h=180&f=webp&q=90"
            alt=""
          />
        </a>
      </div>
      <div class="container">
        <div class="product-header">
          <h2>手机</h2>
        </div>
        <div class="product-content">
          <div class="product-left">
            <img
              src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/cb1bd61ad71c45a4f67f09b075463944.jpeg?thumb=1&w=351&h=921&f=webp&q=90"
              alt=""
            />
          </div>
          <div class="product-right">
            <div class="item">
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
            </div>
            <div class="item">
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
              <div class="item-list">
                <div class="item-img">
                  <img
                    src="https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/68217751d12b1bfd2f9766e458b5e2dd.jpg?thumb=1&w=300&h=300&f=webp&q=90"
                    alt=""
                  />
                </div>
                <div class="item-info">
                  <h3>Redmi K20 Pro 6GB+128GB</h3>
                  <p>骁龙855， 弹出全面屏</p>
                  <p class="price">2999元</p>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Product",
};
</script>

<style lang="scss" scoped>
.products {
  background: #f5f5f5;
  padding: 30px 0 50px;
  .banner {
    margin-bottom: 20px;
    a {
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .container {
    width: 1226px;
    margin-right: auto;
    margin-left: auto;
    h2 {
      font-weight: 200;
      line-height: 58px;
      color: #333;
      font-size: 22px;
      margin: 0;
    }
    .product-content {
      display: flex;
      margin-right: 16px;
      .product-left {
        margin-right: 16px;
        img {
          width: 224px;
          height: 619px;
        }
      }
      .item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 986px;
        margin-bottom: 14px;
        &:last-child {
          margin-bottom: 0;
        }
        .item-list {
          width: 226px;
          height: 302px;
          background-color: #ffffff;
          text-align: center;
          transition: all 0.5s;
          .item-img {
            margin-top: 16px;
            img {
              width: 160px;
              height: 160px;
            }
          }
          .item-info {
            margin-top: 16px;
            h3 {
              font-size: 14px;
              color: #333;
              line-height: 14px;
              font-weight: bold;
            }
            p {
              color: #999;
              line-height: 13px;
              margin: 6px auto 13px;
            }
            .price {
              color: #f20a0a;
              font-size: #f5f5f5;
              font-weight: bold;
              cursor: pointer;
            }
          }
          &:hover {
            box-shadow: 0 15px 30px #00000033;
            transform: translate3d(0, -2px, 0);
          }
        }
      }
    }
  }
}
</style>